phone:+91-99728XXXXX
site language:

Common Issues in Linux Administration - 2

Common Issues in Linux Administration Part-2.

6. User Authentication Issues Error: "Access denied" / SSH login failure. Cause: Expired password, wrong shell, bad SSH keys. Fix: passwd, usermod, check /var/log/secure. 7. Package Management Errors Error: Broken deps, missing repos. Cause: Corrupt repo, outdated cache. Fix: apt update/upgrade, yum clean all. 8. Kernel Panics / System Freezes Cause: Hardware driver issues, faulty modules, bad updates. Fix: Check /var/log/kern.log, update/rebuild kernel. 9. SELinux/AppArmor Denials Error: Service won't start despite correct perms. Cause: Mandatory access control blocks. Fix: audit2why, audit2allow, adjust SELinux policy. 10. Synchronization Issues Error: Logs out of order, Kerberos/SSL failures. Cause: NTP not running, drifted clock. Fix: timedatectl, systemctl restart chronyd/ntpd.

Common Issues in Linux Administration Part-1

Windows Autopilot in Intune: A Step-by-Step Guide

PowerShell Script to Create admin Acc via Intune

Create a new local admin account by following these simple alternative setup steps easily.

$Username = "LocalAdmin" # Change to desired username $Password = ConvertTo-SecureString "Net@admin$1" -AsPlainText -Force # Replace with a secure password $Description = "Local Admin Account created via Intune" # Check if the user already exists if (-not (Get-LocalUser -Name $Username -ErrorAction SilentlyContinue)) { # Create the local user account New-LocalUser -Name $Username -Password $Password -FullName $Username -Description $Description -PasswordNeverExpires # Add the user to the Administrators group Add-LocalGroupMember -Group "Administrators" -Member $Username Write-Output "Local admin account '$Username' created and added to Administrators group." } else { Write-Output "Local admin account '$Username' already exists." } ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ▪️ Log in to the Microsoft Intune Admin Center. ▪️Go to Devices > Scripts and remediations, then click the platform script Click + Add > Windows 10 and later. ▪️Name your script (example - custom Local Admin Account). ▪️Upload your .ps1 file (saved from the script above). ▪️In the Settings: 1. Run this script using the logged-on credentials: No 2. Enforce script signature check: No 3 .Run script in 64-bit PowerShell: Yes ▪️Assign to the correct device group. ▪️Click Next through the rest, then Create

Policy and App logs Path for Intune managed Windows

POLICY AND APPLICATION DEPLOYMENT LOGS FOR INTUNE-MANAGED WINDOWS Devices

INTUNE MANAGEMENT EXTENSION LOGS C: \ProgramData\Microsoft \IntuneManagementExtension\.ogsIntuneManagementExtension.log: Main log for app deployment, script execution • AgentExecutor.log: Tracking script execution • Sensor.log: Endpoint Analytics data collection bgs • Scripts.log: Custom script execution via Intune EVENT VIEWER LOGSApplications and Services Logs Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin • Use for MOM policy deployment events and troubleshooting OM-IRI, CSP-based policies REGISTRY PATHSHKEY_LOCAL_MACHNE\SOFTWARE\Microsoft\PolicyManagerHKEY_LOCAL_MACHNE\SOFTWARE\Microsoft\EnrollmentsHKEY_LOCAL_MACHNE\SOFTWARE\Microsoft\ Enterprise DesktopAppManagement Useful for verifying policy application COMPANY PORTAL LOGS (IF USED) %localappdata%\Packages\Microsoft.CompanyPortal_Bwekyb3dBbbwe\LocalState\DiagOutputDir Troubleshoot issues with: • Enroliment, App availability: CompanPortal interactions TASK SCHEDULER Path: Task Scheduler -Pamcét > Windows > EnterpriseMgmt Check status for 'PushLaunch' if deployment hasn't triggereed

Ways to Fix Active Directory Trust Relationship Issues

Ways to Fix Active Directory Trust Relationship Issues.

1. Identify the Error Code: - Note the error code displayed on the blue screen -> Search online for specific solutions for that error code and find root cause of the issue 2. Update Drivers: - Open Device Manager - Check for devices with yellow exclamation marks - Right-click these devices and select "Update driver" - Choose "Search automatically for drivers" 3. Run System File Checker: - Open Command Prompt as administrator - Type "sfc /scannow" and press Enter - Wait for the scan to complete 4. Check RAM Issues: - Press Win + R, type "mdsched.exe" and press Enter - Choose "Restart now and check for problems" - Let the memory diagnostic tool run

Windows OS Repair Commands

Repairing Windows OS using various methods via Command Prompt(CMD).

Method 1. "sfc /scannow" - built-in Windows utility that scans and repairs corrupted or damaged system files 2. "DISM /Online /Cleanup-Image /RestoreHealth" - scan and repair corrupted system files and registry entries in the online Windows installation - (used if SFC fails) 3. "chkdsk C: /f /r" - check the disk and file system on the C: drive for errors and corruption, and to repair or recover data as needed - when You encounter disk errors or corruption - when You suspect that your disk is failing or has bad sectors - when experience system crashes or freezes. 4. "net stop wuauserv" - used to stop the Windows Update service 5. "net stop bits" - used to stop the Background Intelligent Transfer Service (BITS). 6. "del %windir%SoftwareDistribution*.* /s /q" - Note: Deleting the SoftwareDistribution folder contents can cause Windows Update to re-download update files and re-configure the update process. This can take some time and may impact system performance. - Deletes corrupted Windows Update cache files 7. "net start wuauserv" - used to start the Windows Update service 8. "net start bits" - used to start the Background Intelligent Transfer Service (BITS). - BITS is a Windows service that facilitates the transfer of files between a client and a server. It is used by various Windows components, including: -Windows Update: BITS is used to download updates from Microsoft's update servers. - Windows Defender: BITS is used to download definition updates and other data.

Network Connection Issues in Windows

Common network connectivity problems in Windows 11 and how to diagnose them effectively.

1. Run the Network Troubleshooter: - Go to Settings -> System -> Troubleshoot -> Other troubleshooters -> Please Find "Network Adapter" and click "Run" - Follow the on-screen instructions 2. Reset Network Settings: - Go to Settings > Network & Internet > Advanced network settings - Find "Network reset" and click it - Click "Reset now" and follow prompts - Your PC will restart and network adapters will be reset 3. Update Network Drivers: - Right-click Start button and select "Device Manager" - Expand "Network adapters" - Right-click your network adapter and select "Update driver" - Choose "Search automatically for drivers" 4. Check for Windows Updates: - Go to Settings > Windows Update - Click "Check for updates" - Install any available updates 5. Disable VPN or Proxy: - Go to Settings > Network & Internet > VPN or Proxy - Temporarily disable any VPN or proxy services - Test your connection again